Python 3 (ipykernel)
import pandas as pdimport numpy as npimport plotly as pltimport plotly.express as pxfinaldf = pd.read_csv('C:/Users/ykorn/Downloads/finaldf.csv')test = list(zip(finaldf['latitude'], finaldf['longitude'],finaldf['SalePrice'],finaldf['GrLivArea']))import foliumimport branca.colormap as cmpm = folium.Map(center, zoom_start =13, tiles= 'CartoDB positron' )linear = cmp.LinearColormap( ['lightgreen', 'orange','red'], vmin=12789, vmax=755000, caption='Color Scale for Map' #Caption for Color scale or Legend)def plotDot(point): folium.CircleMarker(location=[point[0],point[1]], radius=2, color = linear(point[2]), popup = 'SalePrice:$ {:.2f}k \n Living Area: {} sq Ft'.format(point[2]/1000,int(point[3])), weight=3).add_to(m)[plotDot(x) for x in test]linear.add_to(m)mInit signature: Map(**kwargs) Docstring: Map class. The Map class is the main widget in ipyleaflet. Attributes ---------- layers: list of Layer instances The list of layers that are currently on the map. controls: list of Control instances The list of controls that are currently on the map. center: list, default [0, 0] The current center of the map. zoom: float, default 12 The current zoom value of the map. zoom_snap: float, default 1 Forces the map’s zoom level to always be a multiple of this.. zoom_delta: float, default 1 Controls how much the map’s zoom level will change after pressing + or - on the keyboard, or using the zoom controls. crs: projection, default projections.EPSG3857 Coordinate reference system, which can be ‘Earth’, ‘EPSG3395’, ‘EPSG3857’, ‘EPSG4326’, ‘Base’, ‘Simple’ or user defined projection. Init docstring: Public constructor File: c:\users\ykorn\anaconda3\lib\site-packages\ipyleaflet\leaflet.py Type: MetaHasTraits Subclasses: Map